package com.sixbro.shiro.service.rbac;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sixbro.shiro.domain.entity.SysRolePermission;
import com.sixbro.shiro.domain.vo.request.RolePermissionOperationRequestVO;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @Author: Mr.Lu
 * @Since: 2020/6/19 14:23
 */
public interface RolePermissionService extends IService<SysRolePermission> {

    int removeByRoleId(String roleId);

    List<String> getPermissionIdsByRoles(List<String> roleIds);

    void addRolePermission(RolePermissionOperationRequestVO vo);

    int removeByPermissionId(String permissionId);

    List<String> getRoleIds(String permissionId);
    List<String> getPermissionIdsByRoleId(String roleId);
}
